package com.peg;

/**
 * @author sad
 */
public class GrammarToken {

    public enum GrammarTokenType {

        RULE_START
    }
    private int start;
    private int length;
    private String value;
    private GrammarTokenType grammarTokenType;

    public GrammarToken(int start, int length, String value, GrammarTokenType grammarTokenType) {
        this.start = start;
        this.length = length;
        this.value = value;
        this.grammarTokenType = grammarTokenType;
    }

    public int getStart() {
        return start;
    }

    public int getLength() {
        return length;
    }

    public String getValue() {
        return value;
    }

    public GrammarTokenType getGrammarTokenType() {
        return grammarTokenType;
    }
}
